App.ExitButton = new Ext.BoxComponent({
	width: 32
	,region: 'east'
	,cls: 'button-exit'
	,listeners: {
		afterrender: function(bt){
			bt.getEl().on('click', function(){
				Ext.Msg.wait('Processing...');
				API.auth.logout(function(r){
					console.log('asdfdsf');
					window.location.href = 'index';	
				});
			});	
		}	
	}	
});